Optimal. Leaf size=63 \[ \frac{\cos (e+f x) \tanh ^{-1}(\sin (e+f x))}{a f \sqrt{a \cos ^2(e+f x)}}-\frac{\cot (e+f x)}{a f \sqrt{a \cos ^2(e+f x)}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.132467, antiderivative size = 63, normalized size of antiderivative = 1., number of steps used = 5, number of rules used = 5, integrand size = 26, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.192, Rules used = {3176, 3207, 2621, 321, 207} \[ \frac{\cos (e+f x) \tanh ^{-1}(\sin (e+f x))}{a f \sqrt{a \cos ^2(e+f x)}}-\frac{\cot (e+f x)}{a f \sqrt{a \cos ^2(e+f x)}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3176
Rule 3207
Rule 2621
Rule 321
Rule 207
Rubi steps
\begin{align*} \int \frac{\cot ^2(e+f x)}{\left (a-a \sin ^2(e+f x)\right )^{3/2}} \, dx &=\int \frac{\cot ^2(e+f x)}{\left (a \cos ^2(e+f x)\right )^{3/2}} \, dx\\ &=\frac{\cos (e+f x) \int \csc ^2(e+f x) \sec (e+f x) \, dx}{a \sqrt{a \cos ^2(e+f x)}}\\ &=-\frac{\cos (e+f x) \operatorname{Subst}\left (\int \frac{x^2}{-1+x^2} \, dx,x,\csc (e+f x)\right )}{a f \sqrt{a \cos ^2(e+f x)}}\\ &=-\frac{\cot (e+f x)}{a f \sqrt{a \cos ^2(e+f x)}}-\frac{\cos (e+f x) \operatorname{Subst}\left (\int \frac{1}{-1+x^2} \, dx,x,\csc (e+f x)\right )}{a f \sqrt{a \cos ^2(e+f x)}}\\ &=\frac{\tanh ^{-1}(\sin (e+f x)) \cos (e+f x)}{a f \sqrt{a \cos ^2(e+f x)}}-\frac{\cot (e+f x)}{a f \sqrt{a \cos ^2(e+f x)}}\\ \end{align*}
Mathematica [C] time = 0.0756979, size = 44, normalized size = 0.7 \[ -\frac{\cot (e+f x) \, _2F_1\left (-\frac{1}{2},1;\frac{1}{2};\sin ^2(e+f x)\right )}{a f \sqrt{a \cos ^2(e+f x)}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 1.17, size = 65, normalized size = 1. \begin{align*} -{\frac{\cos \left ( fx+e \right ) \left ( 2+\sin \left ( fx+e \right ) \left ( \ln \left ( -1+\sin \left ( fx+e \right ) \right ) -\ln \left ( 1+\sin \left ( fx+e \right ) \right ) \right ) \right ) }{2\,a\sin \left ( fx+e \right ) f}{\frac{1}{\sqrt{a \left ( \cos \left ( fx+e \right ) \right ) ^{2}}}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] time = 1.71972, size = 297, normalized size = 4.71 \begin{align*} \frac{{\left (\cos \left (2 \, f x + 2 \, e\right )^{2} + \sin \left (2 \, f x + 2 \, e\right )^{2} - 2 \, \cos \left (2 \, f x + 2 \, e\right ) + 1\right )} \log \left (\cos \left (f x + e\right )^{2} + \sin \left (f x + e\right )^{2} + 2 \, \sin \left (f x + e\right ) + 1\right ) -{\left (\cos \left (2 \, f x + 2 \, e\right )^{2} + \sin \left (2 \, f x + 2 \, e\right )^{2} - 2 \, \cos \left (2 \, f x + 2 \, e\right ) + 1\right )} \log \left (\cos \left (f x + e\right )^{2} + \sin \left (f x + e\right )^{2} - 2 \, \sin \left (f x + e\right ) + 1\right ) - 4 \, \cos \left (f x + e\right ) \sin \left (2 \, f x + 2 \, e\right ) + 4 \, \cos \left (2 \, f x + 2 \, e\right ) \sin \left (f x + e\right ) - 4 \, \sin \left (f x + e\right )}{2 \,{\left (a \cos \left (2 \, f x + 2 \, e\right )^{2} + a \sin \left (2 \, f x + 2 \, e\right )^{2} - 2 \, a \cos \left (2 \, f x + 2 \, e\right ) + a\right )} \sqrt{a} f} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.74274, size = 170, normalized size = 2.7 \begin{align*} -\frac{\sqrt{a \cos \left (f x + e\right )^{2}}{\left (\log \left (-\frac{\sin \left (f x + e\right ) - 1}{\sin \left (f x + e\right ) + 1}\right ) \sin \left (f x + e\right ) + 2\right )}}{2 \, a^{2} f \cos \left (f x + e\right ) \sin \left (f x + e\right )} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\cot ^{2}{\left (e + f x \right )}}{\left (- a \left (\sin{\left (e + f x \right )} - 1\right ) \left (\sin{\left (e + f x \right )} + 1\right )\right )^{\frac{3}{2}}}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.30893, size = 95, normalized size = 1.51 \begin{align*} \frac{\frac{\tan \left (\frac{1}{2} \, f x + \frac{1}{2} \, e\right )}{a^{\frac{3}{2}} \mathrm{sgn}\left (\tan \left (\frac{1}{2} \, f x + \frac{1}{2} \, e\right )^{4} - 1\right )} + \frac{1}{a^{\frac{3}{2}} \mathrm{sgn}\left (\tan \left (\frac{1}{2} \, f x + \frac{1}{2} \, e\right )^{4} - 1\right ) \tan \left (\frac{1}{2} \, f x + \frac{1}{2} \, e\right )}}{2 \, f} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]